package com.lm.boot.dao;

import com.lm.boot.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
@Mapper
public interface UserMapper {

    public User getById(Integer id);

    @Select("select * from user where username = #{username}")
    User getByName(@Param("username") String username);

    User getByPassword(@Param("password")String password);

}
